package com.gjy.encryption.base64;

import org.apache.commons.codec.binary.Base64;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2022-11-05 13:21:22
 */
public class Base64Util {

    public static String encode(byte[] data) {
        return Base64.encodeBase64String(data);
    }

    public static byte[] decode(byte[] data) {
        return Base64.decodeBase64(data);
    }
}
